<Project>
  <Target Name="SetBuildTargetFramework">
    <PropertyGroup>
      <BuildTargetFramework Condition="'$(BuildTargetFramework)' == ''">$(NetCoreAppCurrent)</BuildTargetFramework>
    </PropertyGroup>
  </Target>

  <Target Name="GenerateReferenceAssemblySource" DependsOnTargets="SetBuildTargetFramework;GetProjectWithBestTargetFrameworks">
    <MSBuild Projects="@(InnerBuildProjectsWithBestTargetFramework)"
             Targets="GenerateReferenceAssemblySource"
             BuildInParallel="$(BuildInParallel)">
    </MSBuild>
  </Target>
</Project>
